//
//  PhotoCell.m
//  LYPhotoBrowser
//
//  Created by LvYuan on 16/12/12.
//  Copyright © 2016年 LvYuan. All rights reserved.
//

#import "PhotoCell.h"
#import "UIImageView+WebCache.h"

@implementation PhotoCell

- (void)setPho:(LYPhoto *)pho{
    _pho  = pho;
    if (pho) {
        [_photo sd_setImageWithURL:[NSURL URLWithString:pho.thumbPicUrl] placeholderImage:nil];
    }
}

- (IBAction)tap:(id)sender {
    if (_tapCall) {
        _tapCall(self.photo);
    }
}

@end
